package cc.rengu.igas.cops.common.enums;

/**
 * @Description 能力开放返回码枚举
 * @Author panky
 * @date 2020/5/18
 **/
public enum CopsRespCodeEnum {
    /**
     * 智能路由标准接口错误信息
     */
    COPS_ERROR("ER12CP00", "系统内部错误"),


    ESB_SUCCESS("S000A000", "交易成功"),
    TRANS_SUCCESS("00000000", "交易成功"),
    TRANS_FAIL("99999999", "交易失败"),
    SUCCESS("00000000", "交易成功"),
    PROCESS("000001", "支付中"),
    SYSTEM_ERROR("760001", "系统错误"),
    INVALID_MCHNTNO("760003", "无效商户"),
    INVALID_AMT("760004", "无效金额"),
    PASSWORD_ERROR("760005", "密码错误"),
    REPEAT_TRANS("760006", "重复交易"),
    ORDER_NOT_EXIT("760007", "未找到原交易"),
    INVALID_TERM("760008", "无效终端/二级商户"),
    INVALID_REQUEST_TYPE("760050", "无效请求类型"),
    //快捷支付签约查询类
    SIGN_FAIL01("ER11CO02", "根据卡号未查询到签约信息"),
    SIGN_FAIL02("ER11CO03", "根据证件号，证件类型，行号为查询到签约信息"),
    SIGN_FAIL03("ER11CO04", "获取支付订单信息失败"),
    //银联无跳转签约查询类
    SIGN_FAIL05("ER11CO05", "获取卡BIN信息失败"),
    SIGN_FAIL06("ER11CO06", "该银联机构在联行行号信息表中不存在"),
    SIGN_FAIL07("ER11CO07", "机构单日限额金额未配置或已失效"),
    SIGN_FAIL08("ER11CO08", "机构未设置小额免密限额数据或数据已失效"),
    SIGN_FAIL09("ER11CO09", "机构未设置认证限额的数据或改数据已停用"),
    SIGN_FAIL10("ER11CO10", "插入签约信息表失败"),
    SIGN_FAIL11("ER11CO11", "更新签约信息表系统流水号失败"),
    SIGN_FAIL12("ER11CO12", "机构限额金额未配置"),
    //新增定义的响应码
    NOT_SURP_ACCT_TYPE("ER12CO01", "不支持的卡类型"),
    CARD_STATUS_ERROR("ER12CO02", "卡状态不正常"),
    PARAM_ERROR("ER12CO03", "传入参数错误"),
    REGIST_SIGN_ACCT_ERROR("ER12CO04", "登记签约信息表失败"),
    AMT_LIMIT_BEYOUND("ER12CO05", "金额超限"),
    SIGN_RELATION_NO_EXIT("ER12CO06", "签约关系不存在"),
    USER_INFO_ERROR("ER12CO07", "用户信息不一致"),
    USER_INFO_NOT_EXIT("ER12CO08", "用户信息不存在"),
    USER_PWD_CHECK_ERROR("ER12CO09", "用户密码校验失败"),
    UPDATE_USER_INFO_ERROR("ER12CO10", "更新用户信息失败"),
    NOT_SURP_UPDATE_USER_LOGIN_PWD("ER12CO11", "不支持用户修改登录密码"),
    UPDATE_SIGN_ACCT_INFO_ERROR("ER12CO12", "更新签约关系失败"),
    SINGLE_LIMIT_AMT_BEYOUND("ER12CO13", "单笔限额金额超限"),
    DAY_LIMIT_AMT_BEYOUND("ER12CO14", "单日限额金额超限"),
    BSPS_USER_INFO_NOT_AVALI("ER12CO15", "商户服务用户信息不可用"),
    MCHNT_INFO_NOT_FOUND("ER12CO16", "获取商户信息失败"),
    MCHNT_STATUS_ABNORMAL("ER12CO17", "商户状态异常"),
    NOT_SURP_ACCTTYPE_ERROR("ER12CO18", "不支持的卡类型"),
    MCHNT_AUTH_INFO_NOT_FOUND("ER12CO19", "商户不支持该业务"),
    MCHNT_NO_PERMISSION("ER12CO20", "商户无交易权限"),
    MSG_VALID_CHECK_ERROR("ER12CO21", "报文检查失败"),
    ORDER_DATA_ERR("ER12CO22", "订单数据未同步"),
    PAYTRANSFER_FAIL01("ER11CO23", "未查询到系统参数表,该指定汇路不支持"),
    REGIST_USER_INFO_ERROR("ER11CO24", "登记用户信息表失败"),
    ORDER_NOEXIT("ER11CO25", "订单不存在"),
    ORDER_EXPR_ERROR("ER11CO26", "订单已失效"),
    TRANS_AMT_DISACCORD("ER11CO27", "交易金额不一致"),
    ORDER_NOT_ALLOW_PAY("ER11CO28", "当前订单不能支付"),
    ORDER_FINISH("ER11CO29", "订单已完成"),
    ORDER_CLOSED("ER11CO30", "订单已关闭"),
    USER_OUTLOG_ERROR("ER11CO31", "用户已注销"),
    OVER_PASSWORD_ERROR_TIMES("ER11CO32", "密码输入错误次数超限"),
    USER_NOT_SET_PASSWD_ERROR("ER11CO33", "用户未设置密码，请先设置密码"),
    CARD_NOT_SUPPORT("ER11CO34", "不支持当前支付卡，请换卡支付"),
    TRANS_NOT_SUPPORT("ER11CO35", "交易暂不支持"),
    MCHNT_AMT_OVER("ER11CO36", "商户超限"),
    ORDER_CANT_REFUND("ER11CO37", "当前订单不能退款"),
    MCHNT_INFO_INSERT_FAIL("ER11CO38", "商户信息录入失败"),
    REQ_PARAM_MISSING("ER11CO39", "关键参数缺失"),
    SIGN_CHECK_ERROR("ER11CO40", "签名验证失败"),
    KEY_STRING_NOT_EXSIT_ERROR("ER11CO41", "密钥串不存在"),
    QRCODE_INFO_NOT_EXSIT("ER11CO42", "二维码信息不存在"),
    QRCODE_URL_NOT_DISTINGUISH("ER11CO43", "二维码信息不能识别"),
    ORDERAMT_GREATERTHAN_ZERO("ER11CO44", "交易金额必须大于0"),
    WECHAT_AUTHCODE_NOTBLANK("ER11CO45", "用户授权码不能为空"),
    INSTID_ILLEGAL("ER11CO46", "请求机构标识非法"),
    INSTID_DOMAIN_NOTEXSIT("ER11CO47", "机构域名非法"),


    REGISTER_USER_INFO_ERROR("ER12CO51", "登记用户信息失败"),
    GET_USER_INFO_ERROR("ER12CO52", "用户信息不存在"),
    USER_PASSWORD_ERROR("ER12CO53", "用户密码错误"),
    USER_LOGIN_ERROR_OVERRUN("ER12CO54", "用户登录失败次数超限"),
    USER_NOT_LOGIN_OR_SESSION_IS_EXPIRED("ER12CO55", "用户未登录或会话已过期"),
    USER_PASSWORD_MODIFY_ERROR("ER12CO56", "用户密码修改失败"),
    GET_USER_ROLE_INFO_ERROR("ER12CO58", "获取用户角色信息失败"),
    CALL_BIZ_SERVICE_ERROR("ER12CO57", "调用业务系统处理失败"),
    GET_USER_BIND_INFO_ERROR("ER12CO59", "获取用户绑定商户信息失败"),
    DATABASE_OPR_ERROR("ER12CO60", "数据库操作失败"),
    MCHNTREFUNDIS_REPEAT("ER12CO61", "退款流水号重复"),
    PAY_WAY_TYPE_ERR("ER12CO62", "汇路类型有误，请检查请求参数"),
    PAYEE_INFO_LOSE_ERR("ER12CO63", "收款人关键信息缺失，请检查请求参数"),
    INSERT_ORDER_INFO_ERROR("ER12CO64", "初始化支付订单数据失败"),
    CLASS_CAST_CHANGE_ERR("ER12CO64", "应答类型转换异常"),
    PAY_ORDER_INFO_STAT_NULL("ER12CO65", "支付订单表交易状态为空"),
    PAY_ORDER_INFO_STAT_INVALID("ER12CO66", "支付订单表交易状态不合法"),
    SIGN_DATA_ERROR("ER12CO67", "签约信息数据异常"),
    TOKEN_MCHNT_INFO_NOT_EXSIT("ER12CO68", "该机构无跳转商户信息不存在"),
    TOKEN_NOTIFY_URL_NOT_EXSIT("ER12CO69", "该机构无跳转商户异步通知地址不存在"),
    OPMS_USER_INFO_INSERT_ERROR("ER12CO70", "插入收银台用户订单表失败"),
    SIGN_ACCT_INFO_STATUS_ERROR("ER12CO71", "签约信息表签约状态异常,请联系服务侧"),
    SIGN_ACCT_INFO_CHECK_ERROR("ER12CO72", "签约信息检查失败"),
    GET_COUNT_ERROR("ER12CO73", "获取总记录数失败"),
    UNSUPPORTED_REQ_TYPE("ER12CO74", "不支持的请求类型"),
    CERT_NO_NOT_SINGED_ERROR("ER12CO75", "该证件未查询到签约记录"),
    UNSIGN_ERROR("ER12CO76", "解约处理失败"),
    EXIST_BIND_CARD_UNSIGN_ERROR("ER12CO77", "该客户下存在正常的卡绑定关系记录"),
    USER_ALREADY_UNSIGN_ERROR("ER12CO78", "未找到签约正常的快捷支付客户关系记录"),
    INVALID_ORDER("ER12CO79", "无效的订单"),
    NOT_FOUND_URL_PARAM("ER12CO80", "没有配置URL参数"),
    PAYMENT_PROCESSING("ER12CO81", "交易受理成功，请查询最终状态"),
    PAYMENT_PAY_ERROR("ER12CO82", "结算转账失败");


    private String respCode;
    private String respDesc;

    CopsRespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
